package cn.sciento.farm.devicemanager.gateway.config;


import org.springframework.context.ApplicationListener;
import org.springframework.integration.mqtt.event.MqttMessageSentEvent;
import org.springframework.stereotype.Service;

@Service
public class MqttListener implements ApplicationListener<MqttMessageSentEvent> {
    @Override
    public void onApplicationEvent(MqttMessageSentEvent userRegisterEvent) {
        System.out.println("服务接到通知，给 " + userRegisterEvent.toString());
    }
}
